import requests
import traceback

try:
    response = requests.get('http://localhost:5000/api/testcases')
    print(f"Status Code: {response.status_code}")
    print(f"Response: {response.text}")
except Exception as e:
    print(f"Request failed: {e}")
    traceback.print_exc()